package com.example.blog.service;

import com.example.blog.entity.Like;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.blog.entity.vo.like.LikeDetailInfoVO;

import java.util.List;

/**
 * <p>
 * 点赞表 服务类
 * </p>
 *
 * @author wlh
 * @since 2024-01-10
 */
public interface LikeService extends IService<Like> {

    void add(Long articleId);

    void del(Long articleId);

    Long getNewCountByUser(Long userId);

    List<LikeDetailInfoVO> newLike();

    void read();

    Long getByUserAndArticle(Long userId, Long articleId);
}
